<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th>cid</th>
        <th>cname</th>
    </tr>
    <c:forEach var="cg" items="${list}">
        <tr>
            <td><c:out value="${cg.cid}"/></td>
            <td><c:out value="${cg.cname}"/></td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
